package com.kingjw.lease.web.app;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 不知道为什么，这里扫描不到common 包下的配置文件，所以在这里手动添加扫描common 的路径
 *
 * @EnableAsync 表示允许使用异步注解
 * @author KingJW
 * @description app后端启动类
 * @date 2024/8/1 下午2:14
 */
@SpringBootApplication
//@MapperScan("com.kingjw.lease.web.*.mapper")
@ComponentScan("com.kingjw.lease.common")
@ComponentScan("com.kingjw.lease.web.app")
@EnableAsync
public class AppWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(AppWebApplication.class);
    }
}